package com.itdragon.cloud.eurekaServer.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "eureka-demo", fallback = FeignHystrix.class) // 指定调用的服务
public interface HelloWorldService {
	
	// 服务中的方法
	@GetMapping("/helloworld") // @RequestMapping + Method.Get 
	public String sayHello(@RequestParam("hello") String world);

}
